import { Column, PrimaryGeneratedColumn } from "typeorm";
import { EntityModel } from "@midwayjs/orm";

@EntityModel("global_config", { schema: "heart_neighbor" })
export class GlobalConfig {
  @PrimaryGeneratedColumn({ type: "int", name: "id", comment: "Primary Key" })
  id!: number;

  @Column("datetime", {
    name: "create_time",
    nullable: true,
    comment: "Create Time",
  })
  createTime!: Date | null;

  @Column("varchar", {
    name: "name",
    nullable: true,
    comment: "配置名称",
    length: 255,
  })
  name!: string | null;

  @Column("varchar", {
    name: "value",
    nullable: true,
    comment: "配置值",
    length: 255,
  })
  value!: string | null;
}
